<template>
  <div>
    <el-form :model="{}" size="medium" :inline="true" label-width="60px">
      <el-form-item label="操作栏" prop="" v-hasPermi="['manage_Print_add']">
        <el-button type="primary" plain icon="el-icon-plus" size="medium" @click="handleAdd">添加区域</el-button>
      </el-form-item>

    </el-form>
    <template v-if="openArea">
      <AddArea :title="titleArea" @handleSelectList="handleSelectList"></AddArea>
    </template>
  </div>
</template>

<script>
export default {
  name: 'areaLabel',
  components: {
    // AddArea: import('@/views/A-Repeatplay/deviceManagement/equipment/Print/areaLabel/form/addArea.vue')//添加子组件
    AddArea: () => import('../form/addArea.vue')
  },
  data () {
    return {
      openArea: false,
      titleArea: '新增区域',
    }
  },
  methods: {
    /** 新增按钮操作 */
    handleAdd () {
      this.openArea = true
    },
    /** 修改按钮操作 */
    handleSelectList (row) {
      this.$emit('selectList')
    },
    /** 删除按钮操作 */
    handleDelete (row) {

    },
  }
}
</script>

<style>

</style>